home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2000 November / cd joystick no120 novembre 2000 cd 1.iso / data / demos / gunlok / data1.cab / Program_Executable_Files / scripts / shouldercrab.gsh < prev    next >
Text File  |  2000-08-22  |  2KB  |  53 lines

  1. // defines SHouldercrab
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_SHOULDERCRAB_GSH
  8. #define INCLUDED_SHOULDERCRAB_GSH
  9.  
  10. ////////////////////////////////////////////////////////////////////////////////////
  11.  
  12. #include "defaults.gsh"
  13. #include "lasers.gsh"
  14.  
  15. hierarchy Hcy_Shouldercrab
  16. {
  17.     file "units\Shouldercrab.RIF"
  18.     name "Shouldercrab"
  19.     hotspot "dum flash"
  20.     alternate hotspot "dum flash L"
  21. }
  22.  
  23. character Chr_Shouldercrab : Chr_DefaultBaddie
  24. {
  25.     turning speed   0.3    // this is in revolutions per second
  26.     walking speed   1.0    // this is in animation cycles per second
  27.     weapon          enemy laser
  28.     strength        5    // initial strength points
  29.     aim             1    // how many degrees off target he can be at most
  30.     sight angle        80    // in degrees
  31.     sight range     8    // in metres
  32.     hearing range    20    // in metres
  33.     aggression    0.9    // from 0 to 1
  34.     gun yaw angle    0    // in degrees
  35.     description        drone description
  36. }
  37.  
  38. role Rol_Shouldercrab : Rol_DefaultRobot
  39. {
  40.     shape            Hcy_Shouldercrab
  41.     
  42.     character        Chr_Shouldercrab
  43.         
  44.     identifier        "Shouldercrab"
  45.  
  46.     ai                bot
  47. }
  48.  
  49. ////////////////////////////////////////////////////////////////////////////////////
  50.  
  51. // end wrapper - for preventing multiple or recursive inclusions
  52. #endif // !INCLUDED_SHOULDERCRAB_GSH
  53.